package com.tsingteng.cosfun.ui.message.systemnotification;

import com.tsingteng.cosfun.bean.NotificationBean;
import com.tsingteng.cosfun.bean.SystemNotificationBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;
/**
 * 2018.8.16
 * 常胜
 * 系统通知数据列表请求M层
 * */
public class SystemNotificationModel extends BaseModel implements ISystemNotificationModel {
    @Override
    public void getUserNotification(String type, int page, RxObserver<SystemNotificationBean> callback) {
        doRxRequest().getSystemNotification(type,page,com.tsingteng.cosfun.common.Config.PAGE_SIZE).compose(RxSchedulers.io_main()).subscribe(callback);
    }
}
